package lvbu.wang.lvbuoperator.ui.paramset.ui;

import lvbu.wang.lvbuoperator.bean.FirmwareVersion;
import lvbu.wang.lvbuoperator.bean.JsonMotor;
import lvbu.wang.lvbuoperator.bean.MotorInfo;

/**
 * Created by DaiQing.Zha on 2017/2/22 0022.
 */
public interface IIotParamSetView {

    int PROGRESS_TYPE_NAME = 2000;
    int PROGRESS_CIRCUMFERENCE = 2001;
    int PROGRESS_ADJUST_POWER_LEVEL_ING = 2002;
    int PROGRESS_ADJUST_AUTO_LOCK_TIME_SPAN = 2003;
    int PROGRESS_ADJUST_LOCK_STATUS = 2004;
    int PROGRESS_ADJUST_SPEED_LIMIT_VALUE = 2005;
    int PROGRESS_ADJUST_BIKE_WEIGHT = 2006;
    int PROGRESS_ADJUST_LOAD_WEIGHT = 2007;
    int PROGRESS_CHANGE_STATUS_CHANGE_ING = 2008;
    int PROGRESS_UNBIND = 2009;

    int TOAST_COMM_GET_DATA_ERROR = 1000;
    int TOAST_COMM_MOTOR_COMMAND_ANSWER_ERROR = 1001;
    int TOAST_COMM_BLE_NOT_SUPPORT = 1002;
    int TOAST_COMM_BLUETOOTH_NOT_OPEN = 1003;
    int TOAST_COMM_BLE_CONNECTING = 1004;
    int TOAST_COMM_BLE_IS_NOT_CONNECT = 1005;
    int TOAST_PARAM_SET_GET_GSM_FAIL_ = 1006;
    int TOAST_PARAM_SET_GET_GSM_FAIL = 1007;
    int TOAST_PARAM_SET_GET_VOLTAGE_FAIL = 1008;
    int TOAST_PARAM_SET_RESET_SUCCESS = 1009;
    int TOAST_PARAM_SET_RESET_FAIL = 1010;
    int TOAST_PARAM_SET_FIRMWARE_UPGRADE_FAIL = 1011;
    int TOAST_PARAM_SET_DOWNLOAD_PATCH_FAIL = 1012;   //由于车辆连接超时，恢复出厂设置失败，请稍后再试!
    int TOAST_PARAM_SET_UPGRADE_SUCCESS = 1013;      //升级成功
    int TOAST_PARAM_SET_INSTALL_FAIL = 1014;        //固件安装失败

    void showProcess(int type);        //显示正在操作对话框
    void hideProcess();               //隐藏正在操作对话框
    void showToast(int type);       //显示toast信息
    void showToast(String toast);  //显示toast信息
    void showToast(int type,String toast);  //显示toast信息
    void refreshUI_bluetooth();            //更新蓝牙连接状态
    void refreshUI_motorStatus(String statusName);   //更新电机当前状态
    void refreshUI_motorInfo(MotorInfo motorInfo);  //更新电机信息
    void refreshUI_barcode(String barcode);        //更新二维码
    void refreshUI_firmwareBtnStatus(boolean visible);                   //跟新固件升级按钮的显示状态---显示或者隐藏
    void refreshUI_motorInfo(String[] values);                          //更新电机信息，数据通过蓝牙获取
    void refreshUI_BleSignalStrength(String value);                   //更新蓝牙信号强度
    void refreshUI_voltageStrength(String value);                   //获取电压
    void refreshUI_typeName(String type);                         //更新轮毂型号
    void refreshUI_circumference(String value);                 //更新轮胎周长
    void refreshUI_powerLevel(String value);                  //更新助力等级
    void refreshUI_autoLockTimeSpan(String value);          //修改自动锁定时间
    void refreshUI_lockStatus(String value);              //修改自动锁定时间
    void refreshUI_speedLimitValue(String value);       //修改超速报警值
    void refreshUI_bikeWeight(String value);          //修改超速报警值
    void refreshUI_loadWeight(String value);        //修改超速报警值
    void preUpgradeFirmware();                     //准备固件升级
    void cancelFirmwareUpgrade();                //取消固件升级
    void downloadingUpgradePatchF1(int sectionAlready, int maxSection); //正在下载固件升级包
    void downloadSuccessUpgradePatchF2(String firmwareVersion);        //下载固件升级包完成
    void downloadFailUpgradePatchF3();                               //下载固件升级包失败
    void upgradeFirmwareSuccessF4(String firmwareVersion);         //升级固件成功
    void upgradeFirmwareFailF5();                                //升级固件失败
}
